package com.tensquare.recruit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tensquare.recruit.mapper.RecruitMapper;
import com.tensquare.recruit.domain.Recruit;
import com.tensquare.recruit.service.IRecruitService;

/**
 * 职位Service业务层处理
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
@Service
public class RecruitServiceImpl implements IRecruitService 
{
    @Autowired
    private RecruitMapper recruitMapper;

    /**
     * 查询职位
     * 
     * @param id 职位主键
     * @return 职位
     */
    @Override
    public Recruit selectRecruitById(String id)
    {
        return recruitMapper.selectRecruitById(id);
    }

    /**
     * 查询职位列表
     * 
     * @param recruit 职位
     * @return 职位
     */
    @Override
    public List<Recruit> selectRecruitList(Recruit recruit)
    {
        return recruitMapper.selectRecruitList(recruit);
    }

    /**
     * 新增职位
     * 
     * @param recruit 职位
     * @return 结果
     */
    @Override
    public int insertRecruit(Recruit recruit)
    {
        return recruitMapper.insertRecruit(recruit);
    }

    /**
     * 修改职位
     * 
     * @param recruit 职位
     * @return 结果
     */
    @Override
    public int updateRecruit(Recruit recruit)
    {
        return recruitMapper.updateRecruit(recruit);
    }

    /**
     * 批量删除职位
     * 
     * @param ids 需要删除的职位主键
     * @return 结果
     */
    @Override
    public int deleteRecruitByIds(String[] ids)
    {
        return recruitMapper.deleteRecruitByIds(ids);
    }

    /**
     * 删除职位信息
     * 
     * @param id 职位主键
     * @return 结果
     */
    @Override
    public int deleteRecruitById(String id)
    {
        return recruitMapper.deleteRecruitById(id);
    }
}
